export default {
  title: 'Queue Settings',
  table: {
    name: 'Queue Name',
    partitions: 'Partitions',
    submitStrategy: 'Submit Strategy',
    processingStrategy: 'Processing Strategy',
    description: 'Description',
    createdTime: 'Created Time',
  },
  action: {
    add: 'Add Queue',
    edit: 'Edit Queue',
    delete: 'Delete Queue',
    deleteButton: 'Delete',
    deleteConfirmTitle: 'Are you sure you want to delete the queue [{name}]?',
    deleteConfirmContent: 'Please note: After confirmation, the queue and all related data will not be recoverable.',
    deleteSuccess: 'Queue deleted successfully!',
    copyId: 'Copy Queue ID',
    copyIdSuccess: 'Queue ID copied successfully!',
  },
  form: {
    name: 'Queue Name',
    namePlaceholder: 'Please enter queue name',
    nameRequired: 'Please enter queue name!',
    namePattern: 'Queue name can only contain letters, numbers, underscore and hyphen',
    submitSettings: 'Submit Settings',
    submitStrategy: 'Submit Strategy',
    submitStrategyRequired: 'Please select submit strategy!',
    batchSize: 'Batch size',
    batchSizeRequired: 'Please enter batch size!',
    processingSettings: 'Retry Settings',
    processingStrategy: 'Processing Strategy',
    processingStrategyRequired: 'Please select processing strategy!',
    retries: 'Retries (0 means unlimited)',
    retriesRequired: 'Please enter retries!',
    failurePercentage: 'Failure percentage to skip retries',
    failurePercentageRequired: 'Please enter failure percentage!',
    pauseBetweenRetries: 'Pause between retries',
    pauseBetweenRetriesRequired: 'Please enter pause between retries!',
    maxPauseBetweenRetries: 'Max pause between retries',
    maxPauseBetweenRetriesRequired: 'Please enter max pause between retries!',
    pollingSettings: 'Polling Settings',
    pollInterval: 'Poll interval',
    pollIntervalRequired: 'Please enter poll interval!',
    partitions: 'Partitions',
    partitionsRequired: 'Please enter partitions!',
    consumerPerPartition: 'Each partition has an individual consumer polling messages',
    packProcessingTimeout: 'Processing timeout',
    packProcessingTimeoutRequired: 'Please enter processing timeout!',
    description: 'Description',
    descriptionHelp: 'This text will be displayed in the queue description instead of the selected strategies',
    descriptionPlaceholder: 'Enter queue description',
    addSuccess: 'Queue added successfully!',
    editSuccess: 'Queue updated successfully!',
  },
  detail: {
    title: 'Queue Detail',
    sections: {
      submitSettings: 'Submit Settings',
      retrySettings: 'Retry Settings',
      pollingSettings: 'Polling Settings',
    },
    batchProcessing: 'Batch Processing',
    immediateProcessing: 'Immediate Processing',
    submitStrategy: 'Submit Strategy',
    batchSize: 'Batch size',
    processingStrategy: 'Processing Strategy',
    retries: 'Retries (0 means unlimited)',
    failurePercentage: 'Failure percentage to skip retries',
    pauseBetweenRetries: 'Pause between retries',
    maxPauseBetweenRetries: 'Max pause between retries',
    pollInterval: 'Poll interval',
    partitions: 'Partitions',
    consumerPerPartition: 'Each partition has an individual consumer polling messages',
    packProcessingTimeout: 'Processing timeout',
    description: 'Description',
    unitSecond: 's',
    unitMillisecond: 'ms',
  },

  enum: {
    submitStrategy: {
      sequentialByOriginator: 'Sequential by Originator',
      sequentialByOriginatorHelp:
        'No new messages from a device will be submitted until its previous message is acknowledged.',
      sequentialByTenant: 'Sequential by Tenant',
      sequentialByTenantHelp:
        'No new messages from a tenant will be submitted until its previous message is acknowledged.',
      sequential: 'Sequential',
      sequentialHelp: 'No new message is submitted until the previous one is acknowledged.',
      burst: 'Burst',
      burstHelp: 'All messages are submitted to the rule chain in the order they arrive.',
      batch: 'Batch',
      batchHelp: 'A new batch is not submitted until the previous batch is acknowledged.',
    },
    processingStrategy: {
      retryFailedAndTimedOut: 'Retry Failed & Timed Out',
      retryFailedAndTimedOutHelp: 'Retry all failed and timed out messages in the processing pack.',
      skipAllFailures: 'Skip All Failures',
      skipAllFailuresHelp: 'Ignore all failures.',
      skipAllFailuresAndTimedOut: 'Skip All Failures & Timed Out',
      skipAllFailuresAndTimedOutHelp: 'Ignore all failures and timed out messages.',
      retryAll: 'Retry All',
      retryAllHelp: 'Retry all messages in the processing pack.',
      retryFailed: 'Retry Failed',
      retryFailedHelp: 'Retry all failed messages in the processing pack.',
      retryTimedOut: 'Retry Timed Out',
      retryTimedOutHelp: 'Retry all timed out messages in the processing pack.',
    },
  },
};
